#include "vector.h"
#include "list.h"
#include <iostream>
int main()
{
	mystl::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);
	int times = 0;
	auto it1 = v.rbegin();
	while (it1 != v.rend())
	{
		std::cout << *it1 << " ";
		if (times % 2)
			it1++;
		else
			++it1;
	}
	std::cout << std::endl;
	mystl::list<int> ls;
	ls.push_back(6);
	ls.push_back(7);
	ls.push_back(8);
	ls.push_back(9);
	ls.push_back(10);
	auto it2 = ls.rbegin();
	while (it2 != ls.rend())
	{
		std::cout << *it2 << " ";
		if (times % 2)
			it2++;
		else
			++it2;
	}
	return 0;
}